package com.abu.crms.pojo;

import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.annotation.IdType;

import java.time.LocalDateTime;

import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableField;

import java.io.Serializable;

import com.fasterxml.jackson.annotation.JsonIgnore;
import io.swagger.annotations.ApiModel;
import io.swagger.annotations.ApiModelProperty;
import lombok.Data;
import lombok.EqualsAndHashCode;
import lombok.experimental.Accessors;

/**
 * <p>
 * 管理员表（超级管理员，楼主）
 * </p>
 *
 * @author 阿布
 * @since 2021-02-05
 */
@Data
@EqualsAndHashCode(callSuper = false)
@Accessors(chain = true)
@TableName("cs_manager")
@ApiModel(value = "Manager对象", description = "管理员表（超级管理员，楼主）")
public class Manager implements Serializable {

    private static final long serialVersionUID = 1L;

    @ApiModelProperty(value = "主键id")
    @TableId(value = "mg_id", type = IdType.ASSIGN_ID)
    private Long mgId;

    @ApiModelProperty(value = "名称")
    private String mgName;

    @ApiModelProperty(value = "密码")
    private String mgPwd;

    @JsonIgnore
    private String salt;

    @ApiModelProperty(value = "手机号")
    private String mgMobile;

    private String mgEmail;

    @ApiModelProperty(value = "true：表示启用 false:表示禁用")
    private Boolean mgState;

    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime gmtCreate;

    @ApiModelProperty(value = "修改时间")
    @TableField(fill = FieldFill.INSERT_UPDATE)
    private LocalDateTime gmtModified;

    @TableLogic
    @TableField(value = "is_deleted")
    private Boolean deleted;


}
